// eslint-disable-next-line import/no-anonymous-default-export
export default {
  buildQueryStr (data: { [x: string]: string | number | boolean; })  {
    let queries: string[] = [];
    Object.keys(data).forEach((key) => {
      queries.push(`${encodeURIComponent(key)}=${encodeURIComponent(data[key])}`);
    });
    return queries.join("&");
  }
}